/* 全局页面基础样式 */
body {
    font-family: Arial, sans-serif;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* 去除超链接默认下划线 */
a {
    text-decoration: none;
}

/* 针对表格内超链接的悬停效果（可选，若希望保留一定交互效果可添加） */
table a:hover {
	text-decoration: none;
    text-decoration: underline;
    color: rgb(255, 0, 0); 
    text-decoration: none;/* 悬停时文字颜色改变，可根据喜好调整 */
}
/* 按钮通用样式 */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    margin: 0 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* 不同类型按钮的特定样式 */
.btn.btn-warning {
    background-color: rgb(0, 128, 0);
    color: black;
    border: 1px solid rgb(0, 128, 64);
}

.btn.btn-warning:hover {
    background-color: rgb(0, 64, 0);
    border-color: rgb(0, 128, 64);
    color: rgb(0, 0, 0);
}

.btn.btn-info {
    background-color: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
}

.btn.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}

.btn.btn-primary {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.btn.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn.btn-success {
    background-color: #28a745;
    color: white;
    border: 1px solid #28a745;
}

.btn.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

.btn.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn.btn-danger:hover {
    background-color: #c82333;
    border-color: #c82333;
}

/* 导航栏（选项卡）样式 */
.nav.nav-tabs {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    border-bottom: 2px solid #333;
    display: flex;
    justify-content: space-around;
}

.nav.nav-tabs li {
    flex: 1;
    text-align: center;
}

.nav.nav-tabs li a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav.nav-tabs li.active a,
.nav.nav-tabs li a:hover {
    color: white;
    background-color: #333;
}

/* 表格整体样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* 表头样式 */
.table th {
    background-color: #e9ecef;
    color: #333;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border: 1px solid #dee2e6;
}

/* 表格单元格样式 */
.table td {
    text-align: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

/* 表格行鼠标悬停效果 */
.table tr:hover {
    background-color: #f4f6f8;
}

/* 商品图片样式 */
.table td img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* 分页样式（假设/page.jsp中分页元素相关） */
.page {
    text-align: center;
    margin-top: 20px;
}

.page a {
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin: 0 3px;
    border-radius: 3px;
}

.page a:hover,
.page a.active {
    background-color: #333;
    color: white;
}

/* 添加商品按钮容器样式，使其居中 */
.text-right {
    text-align: center;
    margin-bottom: 15px;
}